<?php
	if(!defined('BASEPATH'))
		exit('No direct script access allowed');
	class Admin_Classified_Model extends CI_Model {
		function __construct(){
			session_start();
			parent::__construct();
			}
			
				function category_list($data){
			$url = CURL_URL;
			$string = http_build_query($data);
			//echo '<pre>';print_r($data);exit;
			$ch = curl_init($url);
			curl_setopt($ch,CURLOPT_POST,true);
			curl_setopt($ch,CURLOPT_POSTFIELDS,$string);
			curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
			$response = json_decode(curl_exec($ch));
			//echo '<pre>';print_r($response);exit;
			curl_close($ch);
			return $response;
		}
}